namespace CSharpPro._1014;

public class Demo
{
    public void Sort(double[] a)
    {
        double temp;
        for (int i = 0; i < a.Length-1; i++)
        {
            for(int j=0; j < a.Length - i -1; j++)
            {
                if(a[j]<a[j+1])
                {
                    temp = a[j];
                    a[j] = a[j + 1];
                    a[j + 1] = temp;
                }
            }
        }
    }
}